import { verifyNumberIntegerAndFloat, verifiyNumberInteger } from '@/utils/formatter'

export function useSalesUtils() {
  const handleFormatterVerifiyNumberInteger = (value: string) => {
    return verifiyNumberInteger(value)
  } //处理输入框正整数 寄存数量
  const handleFormatterVerifyNumberIntegerAndFloat = (value: string) => {
    return verifyNumberIntegerAndFloat(value)
  }

  return {
    handleFormatterVerifiyNumberInteger,
    handleFormatterVerifyNumberIntegerAndFloat
  }
}
